<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaUserRoleViewModel extends ViewModel{
    public $viewFields = array(
        'OaUserRole'=>array('id','emp_id','role_id'),
        'OaRole'=>array(
            'dept_id'=>'role_deptid',
            'name'=>'role_name',
            'role_level',
            '_on'=>'OaUserRole.role_id=OaRole.id')
    );
}
?>